const { wrap } = require('./public')
const express = require('express');
const router = express.Router();
const TypeController = require('../controllers/type');

// 组装路由
router.get('/list', wrap(TypeController.list));
router.post('/delete', wrap(TypeController.delete));
router.post('/add', wrap(TypeController.add));

module.exports = router;
